#ifndef EVENTS
#define EVENTS
#include "../include/Events.h"
#include <iostream>  //for testing

Events::Events() : date(), type(error){}

Events::Events(const Poco::DateTime * const _date)
	: date(_date) , type(error){}


//int Event::compareTo(const Event & other) const{////////////////
//	return 0;
//}


/*bool Event::operator<(const Event &event) {//returns true if this<other
	std::cout<<"operator<"<<"\n";
	int compare = this->compareTo(event);
	return (compare < 0);
}*/


Events::~Events(){}


// Return whether first element should happen after the second
bool Events::after (Events* elem1, Events* elem2)
{
   return (elem1->compareTo(*elem2) < 0);
}


#endif /*EVENTS*/
